package com.mall.permission.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 权限信息
 * </p>
 *
 * @author Darren
 * @since 2022-10-20
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("role_info")
@ApiModel(value="RoleInfo对象", description="权限信息")
public class RoleInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 权限名称
     */
    @ApiModelProperty(value = "权限名称")
    @TableField("role_name")
    private String roleName;

    /**
     * 描述信息
     */
    @ApiModelProperty(value = "描述信息")
    @TableField("description")
    private String description;


}
